package com.wufeng.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wufeng.entity.ConsultApply;
import com.wufeng.service.ConsultApplyService;
import com.wufeng.mapper.ConsultApplyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @author admin
 * @description 针对表【consult_apply】的数据库操作Service实现
 * @createDate 2024-04-09 16:30:37
 */
@Service
public class ConsultApplyServiceImpl extends ServiceImpl<ConsultApplyMapper, ConsultApply>
        implements ConsultApplyService {

    @Autowired
    private ConsultApplyMapper consultApplyMapper;

    @Override
    public List<ConsultApply> getConsultApplyListByCondition(List<Integer> ids,
                                                             Date startTime,
                                                             Date endTime,
                                                             ConsultApply consultApply,
                                                             Integer pageIndex,
                                                             Integer pageSize) {
        Integer startIndex = (pageIndex - 1) * pageSize;


        List<ConsultApply> consultApplyList = consultApplyMapper.
                getConsultApplyListByCondition(ids, startTime, endTime, consultApply, startIndex, pageSize);
        return consultApplyList;
    }

}




